﻿Virtual_Pet:VPMain.o epoll.o MySQLManager.o Database.o Table.o
	g++ -std=c++11 -o Virtual_Pet VPMain.o epoll.o MySQLManager.o Database.o Table.o VirtualPet.cpp epoll.cpp Database.cpp Table.cpp MySQLManager.cpp -L/usr/lib64/mysql/ -lmysqlclient -lz
VPMain.o:VirtualPet.cpp ../include/VirtualPetHead	
	g++ -std=c++11 -c VirtualPet.cpp
	mv VirtualPet.o VPMain.o
epoll.o:epoll.cpp ../include/EpollHead.hpp ../include/SocketHead.hpp
	g++ -std=c++11 -c epoll.cpp
Database.o:Database.cpp ../include/Database.h
	g++ -std=c++11 -c Database.cpp
Table.o:Table.cpp ../include/Table.h
	g++ -std=c++11 -c Table.cpp	
MySQLManager.o:MySQLManager.cpp ../include/MySQLManager.h
	g++ -std=c++11 -c MySQLManager.cpp
clean:
	rm VPMain.o epoll.o MySQLManager.o Database.o Table.o